package Thread;

public class MyThread1 extends Thread{
    public static void main(String[] args) {
        MyThread1 myThread1 = new MyThread1();
        myThread1.start();
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            //子线程输出
            System.out.println(Thread.currentThread().getName()+"->"+i);
        }
    }
}
